<div class="order">
    <div class="order-item">
        <ul>
            <li class="title-first">Sắp xếp:</li>
            <li>
                <a class="<?php echo ($orderType == 'date-down') ? 'selected' : ''; ?>" onclick="AdminController.getListNews('date-down', '<?php echo $categoryId; ?>','<?php echo $subCategoryId; ?>', '<?php echo $page; ?>')">Ngày đăng giảm</a>
            </li>
            <li>
                <a class="<?php echo ($orderType == 'date-up') ? 'selected' : ''; ?>" onclick="AdminController.getListNews('date-up', '<?php echo $categoryId; ?>','<?php echo $subCategoryId; ?>', '<?php echo $page; ?>')">Ngày đăng tăng</a>
            </li>
        </ul>
    </div>
</div>

<div>
    <table cellpadding="0" cellspacing="0" width="100%" class="table-list">
        <col>
        <col>
        <col>
        <col>
        <?php foreach ($aryNewsData as $key => $value) {
        ?>
            <tr class="<?php echo ($key % 2 == 0) ? 'alt' : '' ?>">

                <td align="left" valign="top">
                    <div>
                        <a href="<?php echo $root_page; ?>/chitiet/<?php echo $value['news_id']; ?>/<?php echo $value['news_title_filter']; ?>.html" >
                            <img src="<?php echo $value['news_main_image']; ?>" border="0" align="middle">
                        </a>
                    </div>
                </td>
                <td align="left" valign="top">
                    <div class="product-name">
                        <a  href="<?php echo $root_page; ?>/chitiet/<?php echo $value['news_id']; ?>/<?php echo $value['news_title_filter']; ?>.html"><?php echo $value['news_title']; ?></a>
                    </div>
                </td>

                <td>
                    <div>
                        Người đăng:<?php echo $value['news_creator_name']; ?>
                    </div>
                    <div>
                        Người cập nhật:<?php echo $value['news_updater_name']; ?>
                    </div>
                    <div>
                        Ngày đăng:<?php echo date('d-m-Y', strtotime($value['news_created_date']));
            ; ?>
                    </div>
                    <div>
                        Ngày cập nhật:<?php echo date('d-m-Y', strtotime($value['news_updated_date']));
            ; ?>
                    </div>
                </td>
                <td>
                    <?php if ($perNewsEdit == 2 || $isMaster == 1) {?>
                        <span class="cpointer" onclick="AdminController.editNewsById('<?php echo $value['news_id']; ?>');"><img src="/public/images/form/icon-edit.gif" title="Sửa tin này"></span>
                    <?php } ?>
                </td>
                <td>
                    <?php if ($perNewsDelete == 3 || $isMaster == 1) { ?>
                        <span class="cpointer" onclick="AdminController.showConfirmNewsDelete('<?php echo $value['news_id']; ?>');"><img src="/public/images/form/delete.png" title="Xóa tin này"></span>
                    <?php } ?>
                </td>
        </tr>
    <?php } ?>

</table>
</div>
<div class="clear"></div>
<div align="right"><?php echo $strPaging; ?></div>